package fourzerofour.liangjunwei.day01;

import java.util.Scanner;

public class Question3 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入连乘的最大数：");
        int n=scanner.nextInt();
        int j=1;
        for (int i=0;i<n;i++){
            j=j*(i+1);
        }
        String str ="1";
        for (int i=1;i<n;i++){
            str +="*" + (i+1);
        }
        str += "的结果为" + j;
        System.out.println(str);
    }
}

